package com.tbit.main.service.impl;

import com.tbit.main.dao.core.ClassesConfigDao;
import com.tbit.main.pojo.ClassesConfig;
import com.tbit.main.service.ClassesConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author LMY
 * @create 2021-08-25 17:23
 */
@Service("classesConfigService")
public class ClassesConfigServiceImpl implements ClassesConfigService {

    @Autowired
    private ClassesConfigDao classesConfigDao;

    @Override
    public void add(ClassesConfig classesConfig) {
        classesConfigDao.add(classesConfig);
    }

    @Override
    public void update(ClassesConfig classesConfig) {
        classesConfigDao.update(classesConfig);
    }

    @Override
    public ClassesConfig getWorkNumber(Integer workNumber) {
        return classesConfigDao.getWorkNumber(workNumber);
    }

    @Override
    public void del(Integer workNumber) {
        classesConfigDao.del(workNumber);
    }

    @Override
    public List<ClassesConfig> getAccountId(Integer accountId) {
        return classesConfigDao.getAccountId(accountId);
    }
}
